<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<link rel="shortcut icon" href="http://localhost/project/shop/Static/Index/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="http://localhost/project/shop/Static/Index/Css/global.css" />

<script type="text/javascript" src="http://localhost/project/shop/Static/Index/Js/jquery.min.js"></script>
<script type="text/javascript" src="http://localhost/project/shop/Static/Index/Js/common.js"></script> 

<script type="text/javascript" src="http://localhost/project/shop/Static/Index/Js/scrolltopcontrol.js"></script>
<!--[if IE 6]>
<script type="text/javascript" src="http://localhost/project/shop/Static/Index/Js/DD_belatedPNG.js"></script>
<script>
    DD_belatedPNG.fix(".img_logo", "img");
</script>
<![endif]-->
</head>
<body>
	<!--S header-->
	<div class="header">
		<div class="top_c">
			<div class="top_c_r">
				<ul class="top_list">

					    <?php if(!isset($_SESSION['uname'])){ ?>
					<li class="li_bg">
						<a href="<?php echo U('Member/login');?>" class="a_login">登录</a>
						<a href="<?php echo U('Member/register');?>" class="a_reg">注册</a>
					</li>
					<?php }else{ ?>
					<li class="li_bg">
						<a class="a_login"><?php echo $_SESSION['uname'];?></a>
						<a href="<?php echo U('Member/out');?>" class="a_reg">退出</a>
					</li>
					<?php } ?>
					 

					<li>  
						<a href="javascript:void(0)" class="a_show">我的订单</a> 
						<div class="in_hide">
							<a href="javascript:void(0)" class="a_hide">待支付</a>
							<a href="javascript:void(0)" class="a_hide">待收货</a>
							<a href="javascript:void(0)" class="a_hide">待评价</a>
							<a href="javascript:void(0)" class="a_hide">修改订单</a>  
						</div>

					</li>
					<li>
						<a href="<?php echo U('Member/member');?>" class="a_show">个人中心</a>  
					</li> 
					
					<li class="li_buy"><a href="javascript:void(0)">购物车</a><span>0</span></li>


				</ul>
			</div>
		</div> 
	</div> 
	<!-- logo、搜索框等 -->
	<div class="logo_c">
		<a href="http://localhost/project/shop" class="logo"></a>
		<!-- <a class="logo1"></a>  -->
		<div class="search_box">
				<form id="searchForm" method="get" action="" name="searchForm"> 
					<input id="search_input" class="ui_input" type="text" value="服饰5折起"> 
					<input id="search_button" type="submit" value="">

					<div id="KeywordNew" class="g-search-hotwords">
						<input id="searchDefaultKeyword" type="hidden" key="" value="">
							<a href="javascript:void(0)" target="_blank" name="">
							<font style="color:#FF6600">电热水器</font>
						</a>
						<a href="javascript:void(0)" target="_blank" name="">鲜花</a>
						<a href="javascript:void(0)" target="_blank" name="">鲜花</a> 
						<a href="javascript:void(0)" target="_blank" name="">鲜花</a>
						<a href="javascript:void(0)" target="_blank" name="">鲜花</a>
						<a href="javascript:void(0)" target="_blank" name="">鲜花</a>
						<a href="javascript:void(0)" target="_blank" name="">鲜花</a>
					</div>

				</form>
				<!-- <input id="search_py" type="hidden" value="">
				<input id="isIndex" type="hidden" value="true"> -->

		</div>
		<div class="r_box"></div>

	</div>
	<!--S nav -->
	<div class="nav">
		<div class="nav_c">
			<dl class="c_dl">
				<dd>
					<a href="javascript:void(0)" class="a_dd_show">全部商品分类</a> 
					<div class="a_dd_box">

						<ul class="list_s">
							<li class="in_li"> 
								<div class="in_div1"><i id="i_bg0"></i><a href="javascript:void(0)">名品</a></div>
								<div class="in_div2"><a href="javascript:void(0)">今日上新</a></div> 
								
								<div class="li_in_hide">
									<p class="p_r_top"><a href="javascript:void(0)">名品特卖更多&gt</a></p>
									<div class="in_pp">
										<a href="javascript:void(0)"><img src="http://localhost/project/shop/Static/Index/Images/pp1.jpg" alt=""></a>
										<a href="javascript:void(0)"><img src="http://localhost/project/shop/Static/Index/Images/pp2.jpg" alt=""></a>
										<a href="javascript:void(0)"><img src="http://localhost/project/shop/Static/Index/Images/pp3.jpg" alt=""></a>
										<a href="javascript:void(0)"><img src="http://localhost/project/shop/Static/Index/Images/pp4.jpg" alt=""></a>
										<a href="javascript:void(0)"><img src="http://localhost/project/shop/Static/Index/Images/pp5.jpg" alt=""></a>
										<a href="javascript:void(0)"><img src="http://localhost/project/shop/Static/Index/Images/pp6.jpg" alt=""></a>
										<a href="javascript:void(0)"><img src="http://localhost/project/shop/Static/Index/Images/pp7.jpg" alt=""></a>
										<a href="javascript:void(0)"><img src="http://localhost/project/shop/Static/Index/Images/pp8.jpg" alt=""></a>
										<a href="javascript:void(0)"><img src="http://localhost/project/shop/Static/Index/Images/pp9.jpg" alt=""></a>
										<a href="javascript:void(0)"><img src="http://localhost/project/shop/Static/Index/Images/pp10.jpg" alt=""></a>
										<a href="javascript:void(0)"><img src="http://localhost/project/shop/Static/Index/Images/pp11.jpg" alt=""></a>
										<a href="javascript:void(0)"><img src="http://localhost/project/shop/Static/Index/Images/pp12.jpg" alt=""></a>
									</div> 

								</div>
							</li>
						</ul>


						<?php foreach ($c_data as $k=>$v){?>
							<ul class="list_s">
								<li class="in_li"> 
									<div class="in_div1"><i id="i_bg<?php echo $v['cid'];?>"></i><a href="<?php echo $v['cid'];?>"><?php echo $v['cname'];?></a></div>

									<?php foreach ($v['cate_s'] as $key=>$value){?>
										<div class="in_div2"><a href="<?php echo $value['cid'];?>"><?php echo $value['cname'];?></a></div>
									<?php }?>

									<div class="li_in_hide"> 
										<?php foreach ($v['son'] as $k_s=>$v_s){?>
											<a href="<?php echo $v_s['cid'];?>" class="in_a_title"><?php echo $v_s['cname'];?></a>
											
												<div class="in_a_box">
													<?php foreach ($v_s['son'] as $key=>$value){?>
														<a href="<?php echo U('List/index',array('cid'=>$value[cid]));?>"><?php echo $value['cname'];?></a> 
													<?php }?>
												</div> 
										<?php }?> 
									</div>
								</li>
							</ul>
						<?php }?> 


					</div> 
				</dd> 
				<dt><a href="http://localhost/project/shop" class="a_s">首页</a></dt>
				<?php foreach ($cate_data as $key=>$value){?>
					<dt><a href="index.php?cid=<?php echo $value['cid'];?>" class="a_s"><?php echo $value['cname'];?></a></dt>
				<?php }?> 
				<!-- <span class="span_new"></span> -->
				<!-- <span class="span_hot"></span> --> 
			</dl>
		</div>
	</div>   
	<!-- =========头部结束====================================== -->